-- CALC_PETER_SKILL_COST

-- 计算栅格化的消耗数值
return function(key)
    local dungeonId = DungeonM.getDungeonId();
    local parentId  = DungeonAreaM.getParentId(dungeonId);

    -- 主线迷宫消耗50行代码，非主线迷宫无法释放
    local dungeonType = DungeonAreaM.query(parentId, "type")
    if dungeonType == "main" or dungeonType == "dlc" then
        return 50;
    end

    return 1100;
end